#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021-03-26 15:41
# @Author : wxc
# @File : views.py
# @Desc : index 视图
from flask import jsonify
from flask import current_app
from . import index_blue
from info import redis


@index_blue.route('/', methods=["GET", "POST"])
def hello_world():
    redis.set("name", "wxc")
    value = redis.get("name")
    # 输出日志信息
    current_app.logger.debug(value)
    return jsonify(value=value)

